home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / clipper / rcmplb30.zip / RCMPLIB.CH < prev    next >
Text File  |  1994-02-20  |  3KB  |  66 lines

  1. /***
  2. *    RCmpLib.CH
  3. *
  4. *    Header file for the RCmpLib v3.0 CA-Clipper Library
  5. *
  6. *    Copyright (c) 1994  Rolf van Gelder, Eindhoven
  7. *    All rights reserved
  8. *
  9. *    Revision date : 20/02/94
  10. */
  11.  
  12. *==========================================================================
  13. *    Return codes for RCmpLib functions
  14. *==========================================================================
  15.  
  16. #define    CP_OKAY            0    && No errors detected
  17. #define    CP_INVALID_PARM        1    && Invalid parameter passed
  18. #define    CP_OPEN_INPUT        2    && Error opening  input  file
  19. #define    CP_NOT_RCMPLIB        3    && Not compressed by RCmpLib
  20. #define    CP_WRONG_VERSION    4    && Wrong version of RCmpLib
  21. #define    CP_CREATE_OUTPUT    5    && Error CREATING output file
  22. #define    CP_READ_INPUT        6    && Error READING  input  file
  23. #define    CP_WRITE_OUTPUT        7    && Error WRITING  output file
  24. #define    CP_NO_FILES_FOUND    8    && No files found to compress
  25. #define    CP_USER_ABORT        9    && Function aborted by user
  26. #define    CP_NOT_COMPRESSED    10    && String couldn't be compressed
  27. #define    CP_WAS_COMPRESSED    11    && String was already compressed
  28.  
  29.  
  30. *==========================================================================
  31. *    Array with pre-defined error messages
  32. *==========================================================================
  33. #define    CP_ERRMSG { ;
  34.     "Invalid parameter(s) passed", ;
  35.     "Error OPENING input file", ;
  36.     "Not RCmpLib or protected w/password", ;
  37.     "Wrong version of RCmpLib", ;
  38.     "Error CREATING output file", ;
  39.     "Error READING input file", ;
  40.     "Error WRITING output file", ;
  41.     "No files found to compress", ;
  42.     "Function aborted by user", ;
  43.     "String couldn't be compressed", ;
  44.     "String was already compressed" }
  45.  
  46.  
  47. *==========================================================================
  48. *    R_CmpList() Subarray Structure
  49. *==========================================================================
  50. #define    CP_FNAME        1    && Original file name
  51. #define    CP_ORGSIZE        2    && Original file size
  52. #define    CP_ORGDATE        3    && Original file date (dd-mm-yyyy)
  53. #define    CP_ORGTIME        4    && Original file time (hh:mm)
  54. #define    CP_CMPSIZE        5    && Compressed file size
  55. #define    CP_RATIO        6    && Compression ratio
  56. #define    CP_VERSION        7    && Version of RCmpLib
  57.  
  58.  
  59. *==========================================================================
  60. *    bRCmpBlk Return Codes (R_CmpFile() and R_DCmpFile())
  61. *==========================================================================
  62. #define    CP_ABORT        0    && Abort    compression/decompression
  63. #define    CP_CONT            1    && Continue compression/decompression
  64.  
  65.  
  66. * Eof RCmpLib.CH